<?php
//
// Module class
// DyCMS internal
//

class clsModule extends cDycmsObject
{
	protected $mClsId = 'Module';

	private $mClassName;
	private $mLibrary;

	function DoRender(cDycmsClientNode &$r_client)
	{
		$r_client->AddChild(uiLoadModule($this->mClassName, $this->mLibrary, $this->mId));
	}

	function Edit(IDycmsClient &$r_client)
	{
		$r_client->ContentNode()->AddChild(uiGetIcon('error').'ToDo: allow importing of modules');
	}

	function GetSummary()
	{
		return $this->mAttributes['description'];
	}

	function LoadObject()
	{
		$this->mSummaryValue['classname'] = true;
		$this->mSummaryValue['description'] = true;

		$this->mClassName = &$this->mAttributes['classname'];
		$this->mLibrary = &$this->mAttributes['lib'];
	}
}

?>
